package exp.day02;

import java.util.Arrays;

public class P13_Teacher {
    public static void main(String[] args) {
        String s="There   are   apples;   oranges   and   peaches   on   the   table.  ".toLowerCase().trim();
//        System.out.println(s);
        String[] words = s.split("[^a-z]+");
        System.out.println(Arrays.toString(words));
        String t  = s.replaceAll("[^a-z]"," ");
        System.out.println(t.trim());
    }
}
